my first Berkeley Math Tournament calculus functional equation